package com.ruoyi.orientations.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.orientations.mapper.RoomOrientationsMapper;
import com.ruoyi.orientations.domain.RoomOrientations;
import com.ruoyi.orientations.service.IRoomOrientationsService;

/**
 * 房间朝向管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-14
 */
@Service
public class RoomOrientationsServiceImpl implements IRoomOrientationsService 
{
    @Autowired
    private RoomOrientationsMapper roomOrientationsMapper;

    /**
     * 查询房间朝向管理
     * 
     * @param orientationId 房间朝向管理主键
     * @return 房间朝向管理
     */
    @Override
    public RoomOrientations selectRoomOrientationsByOrientationId(Long orientationId)
    {
        return roomOrientationsMapper.selectRoomOrientationsByOrientationId(orientationId);
    }

    /**
     * 查询房间朝向管理列表
     * 
     * @param roomOrientations 房间朝向管理
     * @return 房间朝向管理
     */
    @Override
    public List<RoomOrientations> selectRoomOrientationsList(RoomOrientations roomOrientations)
    {
        return roomOrientationsMapper.selectRoomOrientationsList(roomOrientations);
    }

    /**
     * 新增房间朝向管理
     * 
     * @param roomOrientations 房间朝向管理
     * @return 结果
     */
    @Override
    public int insertRoomOrientations(RoomOrientations roomOrientations)
    {
        return roomOrientationsMapper.insertRoomOrientations(roomOrientations);
    }

    /**
     * 修改房间朝向管理
     * 
     * @param roomOrientations 房间朝向管理
     * @return 结果
     */
    @Override
    public int updateRoomOrientations(RoomOrientations roomOrientations)
    {
        return roomOrientationsMapper.updateRoomOrientations(roomOrientations);
    }

    /**
     * 批量删除房间朝向管理
     * 
     * @param orientationIds 需要删除的房间朝向管理主键
     * @return 结果
     */
    @Override
    public int deleteRoomOrientationsByOrientationIds(Long[] orientationIds)
    {
        return roomOrientationsMapper.deleteRoomOrientationsByOrientationIds(orientationIds);
    }

    /**
     * 删除房间朝向管理信息
     * 
     * @param orientationId 房间朝向管理主键
     * @return 结果
     */
    @Override
    public int deleteRoomOrientationsByOrientationId(Long orientationId)
    {
        return roomOrientationsMapper.deleteRoomOrientationsByOrientationId(orientationId);
    }
}
